<?php
$this->breadcrumbs=array(
	'Programs'=>array('index'),
	$model->title,
);

$this->menu=array(
	array(Yii::t('yii','List Programs'), array('index')),
	array(Yii::t('yii','Create Programs'), array('create'),'visible'=>Yii::app()->user->hasAuth(Group::TEACHER)),
	array(Yii::t('yii','Update Programs'), array('update', 'id'=>$model->id),'visible'=>Yii::app()->user->hasAuth(Group::TEACHER)),
	array(Yii::t('yii','Manage Programs'), array('admin'),'visible'=>Yii::app()->user->hasAuth(Group::MODERATOR)),
);
?>

<h1>View Programs #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'title',
		'author',
		'code',
	),
)); ?>

<?php $this->widget('textedit.components.TextEditor', array('id'=>'Programsview')); ?>